<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<div class="table-scroll">
       <table id="_list_table" class="table-form table-bordered table-hover table-ellipsis table-fixed">
           <thead>
               <tr>
               	  <th width="5%"><input type="checkbox" name="checkboxall" id="fullCheck" onclick="listTableCheckAll(this)" /></th>
                        <th width="10%">序号</th>
                        <th>数据名称</th>
						<th>数据类型</th>
						<th>操作类型</th>
						<!-- <th>数据内容</th> -->
						<th>同步结果</th>
						<th>同步时间</th>
                    </tr>
                </thead>
                <tbody>
                	<c:if test="${ empty pageBean.data}">
            		<td colspan="7">无符合条件数据</td>
           	</c:if>
           	<c:if test="${not empty pageBean.data}">
           	<c:forEach items="${pageBean.data}" var="synclog" varStatus="seq">
           		<tr>
           			<td><input type="checkbox" name="checkboxOne" id="oneCheck" value="${synclog.id }"/></td>
           			<td>${seq.count+pageBean.first}</td>
     				<td class="text-left">${synclog.dataName }</td>
           			<td>${synclog.dataTypeName}</td>
           			<td>${'add' eq synclog.operationType?'新增':('delete' eq synclog.operationType?'删除':'修改')}</td>
           			<%-- <td title="${synclog.objInfo}">${synclog.objInfo}</td> --%>
           			<td>${"success" eq synclog.syncResult? "同步成功":"同步失败"}  </td>
           			<td>${fn:substring(synclog.syncTime,0,19)}</td>
           		</tr>
           </c:forEach>    
           </c:if>                    
         </tbody>
       </table>
   </div>

  <div class="pages">
  <jsp:include page="../common/pager.jsp"></jsp:include>
 </div>
 <script type="text/javascript">
 currentPageNo = parseInt('${pageBean.currentPage}');
 currentPageSize = parseInt('${pageBean.pageSize }');
 totalPageCount = parseInt('${pageBean.totalPage}');
 </script>